* {
  margin: 0;
  padding: 0;
}
html{
  font-size: 62.5%;
  font-family: "Microsoft YaHei UI";
  height: 100%;
}
body{
  font-size: 62.5%;
  height: 100%;
}
input,button,textarea{
  outline: none;
}
.hide{
  display: none !important;
}

.container{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.color-wrap{
  width: 360px;
  margin: 20px auto;
  position: relative;
  box-shadow: 0 0 0 1px #ccc;
  .color-picker-wrap{
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 180px;
    overflow: hidden;
    .color-picker{
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      top: -6px;
      left: 353px;
      box-shadow: 0 0 0 1px #ccc;
    }
  }
  .color-block{
    width: 360px;
    height: 180px;
  }
  .color-switch{
    width: 50px;
    height: 20px;
    position: absolute;
    top: 200px;
    left: 10px;
    .circle{
      margin-left: 25px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      box-shadow: 0 0 0 1px #ddd;
    }
    .icon{
      width: 20px;
      height: 20px;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
  .switch{
    width: 24px;
    height: 24px;
    position: absolute;
    top: 257px;
    right: 25px;
  }
  .color-show{
    list-style: none;
    width: 320px;
    height: 40px;
    margin: 15px auto;
    li{
      margin: 5px auto;
      width: 306px;
    }
    input{
      height: 16px;
      text-align: center;
    }
    p{
      text-align: center;
      width: 276px;
      margin-top: 2px;
    }
    .hex{
      input{
        width: 50px;
        padding: 0 112px;
      }
    }
    .rgba,.hsla{
      input{
        width: 34px;
        padding: 0 8px;
        margin-right: 20px;
      }
      span{
        float: left;
        display: block;
        width: 54px;
        margin-right: 20px;
        &:last-child{
          margin-right: 0;
        }
      }
    }

  }

  input[type="range"]{
    display: block;
    width: 256px;
    -webkit-appearance: none;
    height: 12px;
    outline: none;
    margin-left: 80px;
  }
  input[type="range"].rgb-range {
    margin-top: 12px;
    margin-bottom: 16px;
    background: linear-gradient(to right,rgb(255,0,0), rgb(255,0,255), rgb(0,0,255),rgb(0,255,255), rgb(0,255,0), rgb(255,255,0), rgb(255,0,0) );
    -webkit-appearance: none;
    height: 12px;
    outline: none;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    cursor: default;
    height: 12px;
    width: 12px;
    background: none repeat scroll 0 0 #fff;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 -1px 0 #fff, 0 1px 0 #fff,1px 0 0 #fff,-1px 0 0 #fff,
    0 -2px 0 #ccc, 0 2px 0 #ccc,2px 0 0 #ccc,-2px 0 0 #ccc,
    0 -1px 0 2px #fff inset, 0 1px 0 2px #fff inset,1px 0 0 #fff inset,-1px 0 0 2px #fff inset,;
    position: relative;
    &::before{
      display: block;
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 12px;
      height: 12px;
      background: #fff;
    }
  }
  input[type="range"].alpha-range {
    margin-bottom: 16px;
    background: url("../img/gray_white_12_12.png");
    position: relative;
    &::before{
      display: block;
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 256px;
      height: 12px;
      background: linear-gradient(to right,rgba(255,0,0,0), rgba(255,0,0,1) );
    }
  }
}
